<template>
  <view>
    <view>健康数据列表</view>
    <view>健康目标</view>
  </view>
</template>

<script lang="ts">
import "./index.less";
import Taro from "@tarojs/taro";

export default {
  data() {
    return {
    };
  },
  methods: {
    async getTotalScore(){

    },
    async getTaskList(){

    },
    async getPersonalHealthyData(){

    },
    gotoTaskBrief(){
      Taro.navigateTo({
        url:""
      })
    },
    getGoalsData(){

    },
    getStepsFromWx(){
      Taro.getWeRunData({
        success: function (res) {
          // 拿 encryptedData 到开发者后台解密开放数据
          const encryptedData = res.encryptedData
          // 或拿 cloudID 通过云调用直接获取开放数据
          const cloudID = res.cloudID
        }
      })
    },

  },

  async created() {
    this.getStepsFromWx();

  },
  mounted() {},

  // onLoad
  onLoad() {},

  // onReady
  onReady() {},

  // 对应 onShow
  onShow() {

  },

  // 对应 onHide
  onHide() {},

  // 对应 onPullDownRefresh
  onPullDownRefresh() {}
};
</script>
